package com.right.health.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

/*
 * Created by hopeliao on 2019-09-29
 *
 */
public class ReviewReminderInfo implements Parcelable {

    public String visitagainid;

    public String visitagainname; //名称
    public String nextvisittime; //下次复诊时间
    public String visitendtime; //结束时间

    public String remindTime;
    public String visitdesc;

    public String visittype;//复诊周期(0:每天一次),
    public String visitTypeText;

    public String remindtype;
    public String remindtypeText;

    public String remindstatus;


    public ReviewReminderInfo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.visitagainid);
        dest.writeString(this.visitagainname);
        dest.writeString(this.nextvisittime);
        dest.writeString(this.visitendtime);
        dest.writeString(this.remindTime);
        dest.writeString(this.visitdesc);
        dest.writeString(this.visittype);
        dest.writeString(this.visitTypeText);
        dest.writeString(this.remindtype);
        dest.writeString(this.remindtypeText);
        dest.writeString(this.remindstatus);
    }

    protected ReviewReminderInfo(Parcel in) {
        this.visitagainid = in.readString();
        this.visitagainname = in.readString();
        this.nextvisittime = in.readString();
        this.visitendtime = in.readString();
        this.remindTime = in.readString();
        this.visitdesc = in.readString();
        this.visittype = in.readString();
        this.visitTypeText = in.readString();
        this.remindtype = in.readString();
        this.remindtypeText = in.readString();
        this.remindstatus = in.readString();
    }

    public static final Creator<ReviewReminderInfo> CREATOR = new Creator<ReviewReminderInfo>() {
        @Override
        public ReviewReminderInfo createFromParcel(Parcel source) {
            return new ReviewReminderInfo(source);
        }

        @Override
        public ReviewReminderInfo[] newArray(int size) {
            return new ReviewReminderInfo[size];
        }
    };
}
